@if (@CodeSection == @Batch) @then
@echo off
rem Use %SendKeys% to send keys to the keyboard buffer
set SendKeys=CScript /nologo /e:JScript "%~F0"
@REM start "" /b firefox.exe -devtools http://auth4.tsinghua.edu.cn
rem "" make the application be focused
start "" /b firefox.exe net.tsinghua.edu.cn

ping 192.0.2.2 -n 1 -w 5000 > nul
%SendKeys% "{TAB}{TAB}zhangaq19{TAB}Zhang1996{ENTER}"
pause
goto :EOF
@end


// JScript section

var WshShell = WScript.CreateObject("WScript.Shell");
WshShell.SendKeys(WScript.Arguments(0));